package rentalstore;

/**
 * ChildrensPrice
 *
 * @author Burgess Li
 * @createDate 2018/08/27 23:24
 */
public class ChildrensPrice extends Price {

    int getPriceCode() {
        return Movie.CHILDRENS;
    }

    double computeAmount(int dayRented) {
        double amount = 1.5;
        if(dayRented > 3) {
            amount += (dayRented -3) * 1.5;
        }
        return amount;
    }

}
